Responsible for logging all messages from the component.
More...
Responsible for logging all messages from the component.
By registering a nkLog::Logger inside, it is possible to listen to all messages logged.
◆ getReceiver()
- Returns
- The currently registered logger.
◆ setReceiver()
void nkScripts::LogManager::setReceiver |
( |
nkLog::Logger * |
receiver | ) |
|
Allows to set the logger that should receive the messages.
- Parameters
-
receiver | The logger to send messages to. |
◆ log()
void nkScripts::LogManager::log |
( |
const std::string_view & |
message, |
|
|
const std::string_view & |
className |
|
) |
| |
Called by component's classes to log messages they need to log.
- Parameters
-
message | The message to log. |
className | Bonus context information. |
The documentation for this class was generated from the following file: